Some additions to the migration guide
authorMatthias Clasen <mclasen@redhat.com>
Sun, 20 Nov 2016 12:46:47 +0000 (07:46 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 20 Nov 2016 13:14:19 +0000 (08:14 -0500)
docs/reference/gtk/migrating-3to4.xml

index e8ce2aaaef80c39e2fad2860a1c915d1f2bdaed7..7b7c36fb0fdf4d33d724edf8b6a139318cdf2654 100644 (file)
       </para>
     </section>
 
+    <section>
+      <title>Do not use widget style properties</title>
+      <para>
+        Style properties do not exist in GTK+ 4. You should stop using them in
+        your custom CSS.
+      </para>
+    </section>
+
     <section>
       <title>Review your window creation flags</title>
       <para>
       </para>
     </section>
 
+    <section>
+      <title>Stop using gdk_pixbuf_get_from_window() and gdk_cairo_set_source_window()</title>
+      <para>
+        These functions are not supported in GTK+ 4. Instead, either use backend-specific
+        APIs, or render your widgets using gtk_widget_render().
+      </para>
+    </section>
+
   </section>
 
   <section>
       have been either impossible or impractical.
     </para>
 
+    <section>
+      <title>Adapt to GdkWindow API changes</title>
+      <para>
+        The gdk_window_new() function has been replaced by a number of more
+        specialized constructors: gdk_window_new_toplevel(), gdk_window_new_popup(),
+        gdk_window_new_temp(), gdk_window_new_child(), gdk_window_new_input(),
+        gdk_wayland_window_new_subsurface(). Use the appropriate ones to create
+        your windows.
+      </para>
+    </section>
+
     <section>
       <title>Adapt to GtkStyleContext API changes</title>
       <para>
       </para>
     </section>
 
+    <section>
+      <title>Adapt to GtkCssProvider API changes</title>
+      <para>
+        In GTK+ 4, the various #GtkCssProvider load functions have lost
+        their #GError argument. If you want to handle CSS loading errors,
+        use the #GtkCssProvider::parsing-error signal instead.
+      </para>
+    </section>
+
     <section>
       <title>Stop using GtkContainer::border-width</title>
       <para>
       </para>
     </section>
 
+    <section>
+      <title>Use gtk_widget_measure</title>
+      <para>
+        gtk_widget_measure replaces the various gtk_widget_get_preferred_ functions
+        for querying sizes.
+      </para>
+    </section>
+
     <section>
       <title>Adapt to drawing model changes</title>
       <para>